define(
		[ "PDAppDir/properties", "PDUtilDir/util", "PDUtilDir/tool", "PDUtilDir/slidebar", "PDUtilDir/inputSelect", "PDUtilDir/fileupload/multiFileUpload" ],
		function(Properties, Util, Tool, Slidebar, inputSelect, MFU) {
			function detailSupportInit($scope, $compile){
				return new detailSupport($scope, $compile);
			};
			function detailSupport($scope, $compile){
				this.entity = {};
				this.$scope = $scope;
				this.$compile = $compile;
				this.cache = {
					fileServer: Properties.URL_FILE_SERVER_URL
				}
			};
			detailSupport.fn = detailSupport.prototype;
			detailSupport.fn.digest = function(){
				 this.$scope.$digest();
			};
			detailSupport.fn.run = function(id) {
				var _this = this;
				_this.entity.id = id;
				this.slidebars = Slidebar({
					size : 'lg',
					url : getServer() + "/static/app/register/guideInfos/views/detail.html",
					$scope: this.$scope,
					$compile: this.$compile,
					afterLoad : function($Panel) {
						_this.initialization();
					}
				});
			};
			detailSupport.fn.initialization = function(){
				this.baseInit();
			};
			detailSupport.fn.baseInit = function() {
				var _this = this;
				//加载code
				$.ajax({
					url : getServer() + "/flea/hclv/guide/getGuideInfo.htmls",
					method : 'get',
					data: {
						guideId: _this.entity.id
					},
					success : function(data) {
                        if (data.status != 200) {
                            return;
                        }
						_this.entity = data.data;
						_this.digest();
					}
				});
			};
			return detailSupportInit;
		});